//
//  RYDingdanListModel.swift
//  SheYangBigData
//
//  Created by 宋海胜 on 2021/1/25.
//  Copyright © 2021 叁拾叁. All rights reserved.
//

import UIKit
import HandyJSON
import RxSwift

struct RYDingdanListModel: HandyJSON, Equatable {

    var id: Int = 0
    /// 604
    var itemId: String?
    /// 瑞康农场一号青菜基地
    var farmName: String?
    ///
    var uuid: String?
    /// 1
    var tenantId: Int = 0
    ///
    var orderNumber: String?
    ///
    var updateDate: String?
    ///
    var createDate: String?
    /// 7
    var shippingAddressId: Int = 0
    /// 1
    var version: Int = 0
    ///
    var adoptTime: String?
    /// 4
    var orderQuantity: Int = 0
    /// 3
    var farmProductId: Int = 0
    ///
    var adoptFarmProductVO: NSAdoptFarmProductVOModel?
    ///
    var adoptShippingAddressVO: NSAdoptShippingAddressVOModel?
    /// <#泛型#>
    var trackingNumber: String?
    /// 264
    var orderPrice: Double = 0
    ///
    var orderTime: String?
    /// 13222788784
    var adoptUserContact: String?
    /// 1
    var sort: Int = 0
    /// 至少配送一次
    var deliveryCycleName: String?
    /// 孙悦
    var adoptUserName: String?
    /// 291
    var deliveryWay: Int = 0
    /// 1
    var payWay: Int = 0
    /// 1
    var status: Int = 0
    /// 快递配送
    var deliveryWayName: String?
    /// 请知悉我
    var remarks: String?
    ///
    var predictMatureTime: String?
    /// 2
    var adoptStatus: Int = 0
    /// 1
    var updateBy: Int = 0
    /// 22
    var createBy: Int = 0
    /// DLC00342
    var adoptNumber: String?
    /// 293
    var deliveryCycle: Int = 0
    
    func getRenyangStatus() -> String {
        switch self.adoptStatus {
        case 1:
            return "待付款"
        case 2:
            return "认养中"
        case 3:
            return "配送中"
        case 4:
            return "已完成"
        case 5:
            return "已取消"
        default:
            return ""
        }
    }
    
    
}


struct NSAdoptFarmProductVOModel :  HandyJSON, Equatable {

    /// <#泛型#>
    var id: String?
    /// <#泛型#>
    var farmName: String?
    /// <#泛型#>
    var uuid: String?
    /// <#泛型#>
    var tenantId: String?
    ///
    var description: String?
    /// 269
    var dictionaryId: Int = 0
    /// 26
    var remainNum: Int = 0
    ///
    var priceDescription: String?
    /// 2021-03-04
    var productionCycleEnd: String?
    /// <#泛型#>
    var updateDate: String?
    ///
    var detailImgUrl: String?
    /// <#泛型#>
    var createDate: String?
    /// 龙池矮脚黄
    var name: String?
    /// 201216000002
    var deviceId: String?
    /// <#泛型#>
    var version: String?
    /// 30斤/份
    var adoptHarvest: String?
    /// 2020-09-20
    var productionCycleBegin: String?
    /// 30
    var adoptHarvestNum: Int = 0
    /// DLC00342
    var serialNumber: String?
    /// <#泛型#>
    var sort: String?
    /// 5
    var purchaseLimit: Int = 0
    /// 165
    var productionCycle: Int = 0
    /// 斤
    var adoptHarvestUnit: String?
    ///
    var carouselImgUrl: String?
    /// <#泛型#>
    var status: String?
    /// <#泛型#>
    var typeName: String?
    /// 3
    var unitPrice: Double = 0
    /// <#泛型#>
    var traceRecords: String?
    /// <#泛型#>
    var remarks: String?
    /// 2
    var farmId: Int = 0
    /// <#泛型#>
    var type: String?
    /// <#泛型#>
    var adoptedPercent: String?
    /// <#泛型#>
    var updateBy: String?
    /// <#泛型#>
    var createBy: String?
    /// 74
    var adoptedNum: Int = 0
    /// 66
    var adoptPrice: Double = 0
    /// 5m²/份
    var adoptPart: String?
    /// 54
    var adoptPeopleNum: Int = 0
    /// 瑞康生态园门票*2
    var present: String?
    /// 100
    var totalNum: Int = 0
}


struct NSAdoptShippingAddressVOModel :  HandyJSON, Equatable {

    /// provinceId
    var provinceId: Int = 0
    /// <#泛型#>
    var updateBy: String?
    /// 22
    var appUserId: Int = 0
    /// <#泛型#>
    var tenantId: String?
    /// streetId
    var streetId: Int = 0
    /// districtId
    var districtId: Int = 0
    /// <#泛型#>
    var version: String?
    /// 义马市
    var districtName: String?
    ///
    var address: String?
    /// <#泛型#>
    var updateDate: String?
    /// 三门峡市
    var cityName: String?
    /// <#泛型#>
    var remarks: String?
    /// 13222778399
    var mobile: String?
    /// <#泛型#>
    var createDate: String?
    /// 河南省
    var provinceName: String?
    /// 朝阳路街道
    var streetName: String?
    /// cityId
    var cityId: Int = 0
    /// <#泛型#>
    var uuid: String?
    /// <#泛型#>
    var status: String?
    /// <#泛型#>
    var id: String?
    /// 孙伟
    var name: String?
    /// <#泛型#>
    var sort: String?
    /// <#泛型#>
    var createBy: String?
    /// 0
    var isDefault: Int = 0
}
